const state = {
  routerType:localStorage.getItem("routerType") || "ERP",
}
const actions = {
  changeRouterType({commit},data){
    commit("CHANGE_ROUTER_TYPE",data);
  }
}
const mutations = {
  CHANGE_ROUTER_TYPE(state,data){
    state.routerType = data;
    localStorage.setItem("routerType",data);
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}